Skip to content

Added get_sync_progress() method#33

Merged
mitchhs12 merged 1 commit intomainfrom
feature/sync-progress-api
Feb 4, 2026
Merged

Added get_sync_progress() method#33
mitchhs12 merged 1 commit intomainfrom
feature/sync-progress-api

Conversation

@mitchhs12
Copy link
Contributor

@mitchhs12 mitchhs12 commented Jan 9, 2026

Summary

Adds get_sync_progress() method to the Python Admin API client to fetch sync progress for a dataset version.

Changes

Added SyncProgressResponse and TableSyncProgress Pydantic models
Added DatasetsClient.get_sync_progress(namespace, name, revision) method

Usage

from amp.admin import AdminClient

client = AdminClient('http://localhost:1610')
progress = client.datasets.get_sync_progress('_', 'eth_firehose', 'latest')

for table in progress.tables:
    print(f'{table.table_name}: block {table.current_block}, status: {table.job_status}')

Reference:

Implements Python client for edgeandnode/amp#1528 (sync-progress Admin API endpoint)

@mitchhs12 mitchhs12 requested a review from fordN January 9, 2026 18:11
@mitchhs12 mitchhs12 self-assigned this Jan 9, 2026
Copy link
Contributor

@fordN fordN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, very useful.

@fordN fordN added the adminAPI label Feb 3, 2026
@mitchhs12 mitchhs12 merged commit eea3e11 into main Feb 4, 2026
9 checks passed
@mitchhs12 mitchhs12 deleted the feature/sync-progress-api branch February 4, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants